package com.example.springboot.exception;

import lombok.Getter;

import javax.sql.rowset.serial.SerialStruct;

@Getter
public class ServiceException extends RuntimeException{
    private final String code;

    public ServiceException(String  msg){
        super(msg);
        this.code = "500";
    }

    public ServiceException(String code, String msg) {
        super(msg);
        this.code = code;
    }
}